package com.lvmama.system.util;

import com.lvmama.autoconfig.ConfigManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/11/16 0016.
 */
@Component
public class ReadConfigJob {

    @Autowired
    private ConfigManager configManager;

    @Scheduled(cron = "${readConfigJob}")
    public void readConfig(){
        configManager.init("");
    }
}
